import request from '@/utils/request'

// 获取商品分类数据列表
export function getCategoriesListService(params) {
  return request.get('/categories', {
    params,
  })
}

// 获取父分类
export function getParentCateListService(type) {
  return request.get('/categories', {
    params: { type },
  })
}
// 添加分类
export function addCateService(data) {
  return request.post('/categories', data)
}
